projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9f4fb
)
modelmenu: fix a GCC warning
author
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 21 Aug 2012 09:15:32 +0000
(11:15 +0200)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 21 Aug 2012 09:15:32 +0000
(11:15 +0200)
This should not be a const string, since the caller is supposed to free
it.
gtk/gtkmodelmenu.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmodelmenu.c
b/gtk/gtkmodelmenu.c
index dccf72a2382e12ed64550cf63b70d1c03edec4a3..bb6a711026eddfebb5047e5b41ee222b6808505b 100644
(file)
--- a/
gtk/gtkmodelmenu.c
+++ b/
gtk/gtkmodelmenu.c
@@
-84,7
+84,7
@@
gtk_model_menu_binding_append_item (GtkModelMenuBinding *binding,
if ((section = g_menu_model_get_item_link (model, item_index, "section")))
{
-
const
gchar *section_namespace = NULL;
+ gchar *section_namespace = NULL;
g_menu_model_get_item_attribute (model, item_index, "label", "s", heading);
g_menu_model_get_item_attribute (model, item_index, "action-namespace", "s", §ion_namespace);